
<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><title>
	炮弹走私
</title><script language="javascript" type="text/javascript"> 
            var applicationPath = "";
        </script>
<meta http-equiv="content-language" content="zh-CN" />
<link rel="icon" type="image/x-icon" href="http://www.wxmaiyatang.cn/favicon.ico" media="screen" />
<link rel="shortcut icon" type="image/x-icon" href="http://www.wxmaiyatang.cn/favicon.ico" media="screen" />
<meta name="author" content="Hishop development team" />
<meta name="GENERATOR" content="微分销" />
<meta name="renderer" content="webkit" /><link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.min.css" />
<script type="text/javascript" src="../admin/js/browserdetect.js"></script>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>
<script src="http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../admin/css/bootstrap-datetimepicker.min.css" />
<script type="text/javascript" src="../admin/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="../admin/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript" src="../admin/js/jquery.formvalidation.js"></script>
<link rel="stylesheet" href="../admin/css/common.css" />
<script src="../admin/js/Framenew.js?3.3.1bk1"></script>
<meta name="keywords" /><meta name="description" />
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <style>
        .tableRow{border:1px solid #ccc}
        .tableRow tr td{padding-left:5px!important}
        .tableRow tr:hover{background:#def3e1}
        .table th{text-align:left!important;padding-left:5px!important}
        .success{color:#13b743}
        .green{color:#4cff00}
        .normal{color:#888}
        .errcss{color:#ff6a00}
       .red{border:1px solid #ff6a00;padding:5px;margin-top:5px;display:block;border-radius:4px}
       body{padding-right:0px!important}
    </style>
    <script>

        function AView(Aid) {
            window.location.href = "AddOneyuanInfo.aspx?vaid=" + Aid;

        }
        function AEdit(Aid) {
            window.location.href = "AddOneyuanInfo.aspx?aid=" + Aid;
        }
        function AStart(Aid) {
            var DataJson = { action: "Start", Aid: Aid };

            HiTipsShow("确定开启活动？", "confirmII", function () {

                AjaxPost(DataJson);
            });
           
        }


        function AEnd(Aid,Fnum,Rtype,Rnum) {
            var DataJson = { action: "End", Aid: Aid };

            var msg = "确定提前结束活动？";
          
            if (Fnum == 0)
            {
                //如果没有人员参与，直接结束，并清除未付款参与者信息
                HiTipsShow(msg, "confirmII", function () {
                    AjaxPost(DataJson);
                });
            }
            else
            {
                //如果有人参与，判断开奖类型
                var CanAward=false;
                if ((Rtype != 2 && Fnum >= Rnum) || Rtype == 2) {
                    CanAward=true;
                }
                
                if (CanAward)
                {
                    msg += "<br/><span class='red'>当前活动已有" + Fnum + "人参加并付款,已达设置开奖条件！</span>"

                }
                else{
                    msg += "<br/><span  class='red'>当前活动已有" + Fnum + "人参加并付款,尚未达到开奖条件！</span>"
                }


                $("#EndBody").html(msg);
                $("#ActivityEnd").modal("show").children().css({
                    width: '400px', top: "100px"
                });;

                // DrawEnd
                // RefundEnd
                DataJson.action = "EndII";
                $("#DrawEnd").unbind("click").click(function () {
                    DataJson.CanDraw = 1; //立即开奖
                    $("#ActivityEnd").modal("toggle");
                    AjaxPost(DataJson);
                });

                $("#RefundEnd").unbind("click").click(function () {
                    DataJson.CanDraw = 0; //退款
                    $("#ActivityEnd").modal("toggle");
                    AjaxPost(DataJson, null, function (Data) {

                        if (Data.state) {
                            BatchRefund(Aid); //回调成功后，再调用批量退款功能
                        }
                        else {
                            HiTipsShow(Data.msg, "warning");
                        }
                     
                    });
                });
              

            } 
        }


        function ADel(Aid) {
            var DataJson = { action: "Del", Aid: Aid };
            HiTipsShow("确定删除活动？", "confirmII", function () {
                AjaxPost(DataJson);
            });
        }
       
        function BatchRefund(Aid) {
            var DataJson = { action: "BatchRefund", vaid: Aid };
            HiTipsShow("确定批量退款？确定后微信支付将直接在后台处理退款，支付宝将转向支付宝服务器处理退款！", "confirmII", function () {
                AjaxPost(DataJson, "RefoundList.aspx", function (data) {
                    if (data.state) {
                        HiTipsShow(data.msg, "success", function () {
                          //  window.location.reload(); //重新加载当前页
                            if (data.alipay) {
                                window.open("../OutPay/OneyungRefund.aspx?vaid=" + Aid); //转到支付宝退款
                            }
                        });
                    } else {
                        HiTipsShow(data.msg, "error", function () {
                            window.location.reload();
                        });
                    };

                }); //在REFUND页面处理
            });
        }

        //批量删除
        function BatchDel()
        {
            if ($("input[name=CheckBoxGroup]:checked").length < 1) {
                HiTipsShow("没有活动被选择！请先选择需要删除的活动", "warning");
                return;
            }

            var Aids = [];

            $("input[name=CheckBoxGroup]:checked").each(function () {
                var candel = $(this).attr("candel");

                if (candel == "1") {
                    Aids.push($(this).val());
                }
                else {
                    $(this).prop("checked", false);
                }
            });

            if (Aids.length == 0) {
                HiTipsShow("没有符合删除条件的活动被选择！", "warning");
                return;
            }

            var idstr = Aids.join(","); //可删除的AID
            var DataJson = { action: "BatchDel", Aids: idstr };

            HiTipsShow("确定批量删除活动？", "confirmII", function () {

                AjaxPost(DataJson);
            });

           
        }

        ///批量开始
        function BatchStart()
        {
            if ($("input[name=CheckBoxGroup]:checked").length < 1) {
                HiTipsShow("没有活动被选择！请先选择需要开始的活动", "warning");
                return;
            }

            var Aids=[];

            $("input[name=CheckBoxGroup]:checked").each(function () {
                var state = $(this).attr("state");

                if (state == "未开始") {
                    Aids.push($(this).val());
                }
                else {
                    $(this).prop("checked", false);
                }
            });


            if (Aids.length == 0) {
                HiTipsShow("没有符合开始条件的活动被选择！", "warning");
                return;
            }

          var idstr= Aids.join(","); //可删除的AID
          var DataJson = { action: "BatchStart", Aids: idstr };

          HiTipsShow("确定批量开始活动，会重新修改活动开始时间？", "confirmII", function () {

              AjaxPost(DataJson);
          });

        }


        function AjaxPost(PostData,postUrl,callback)
        {
            var url = "OneyuanList.aspx";
            if (postUrl != null) {
                url = postUrl;
            }
            
            $.ajax({
                type: "post",
                url: url,
                data: PostData,
                async: false,
                dataType: "json",
                success: function (data) {

                    if (callback) {
                        callback(data); //如果有回调，则调用回调
                    }
                    else {
                        if (data.state) {
                            HiTipsShow(data.msg, "success", function () {
                                window.location.reload(); //重新加载当前页
                            });

                        } else {
                            HiTipsShow(data.msg, "error");
                        };
                    }
                    
                },
                error: function () {
                    HiTipsShow("访问服务器异常！", "error");
                }
            });




        }



        $(function () {

            var tabNum = getParam("state");
            if (tabNum != "")
            {
                var $tab = $(".nav-tabs li");
                $tab.removeClass("active");
                $tab.eq(tabNum).addClass("active");
            }
         

            $("#sells1").click(function () {
                $("input[name=CheckBoxGroup]").prop("checked", $(this).prop("checked"));
            });

        });
    </script>
</head>
<body class="theme theme--blue">

    <header class="ui-header navbar-fixed-top">
        <div class="ui-header-inner clearfix">
            <h1 class="ui-header-logo">
                <a href="/admin/" title="管理后台">
                    <span class="version"><i>3.4</i></span>
                </a>
            </h1>
            <nav class="ui-header-nav">
                <ul class="clearfix">
<li class="divide">|</li>
<li mid="m01"><a href="/Admin/Default.aspx?firstPage=1" title="店铺">店铺</a></li>
<li mid="m02"><a href="/Admin/goods/productonsales.aspx?firstPage=1" title="商品">商品</a></li>
<li mid="m03"><a href="/Admin/trade/manageorder.aspx?firstPage=1" title="订单">订单</a></li>
<li class="divide">|</li>
<li mid="m04"><a href="/Admin/member/MemberGaiKuang.aspx?firstPage=1" title="会员">会员</a></li>
<li mid="m05"><a href="/Admin/Fenxiao/DistributorSummary.aspx?firstPage=1" title="分销">分销</a></li>
<li class="divide">|</li>
<li mid="m06"><a href="/Admin/weixin/wxconfig.aspx?firstPage=1" title="微信">微信</a></li>
<li mid="m07"><a href="/Admin/Weibo/timeline.aspx?firstPage=1" title="微博">微博</a></li>
<li mid="m11"><a href="/Admin/AliFuwu/AliFuwuConfig.aspx?firstPage=1" title="服务窗">服务窗</a></li>
<li class="divide">|</li>
<li class=" active" mid="m08"><a href="/Admin/Promotion/CouponsList.aspx?firstPage=1" title="营销">营销</a></li>
<li class="divide">|</li>
<li mid="m09"><a href="/Admin/Settings/Alipay.aspx?firstPage=1" title="设置">设置</a></li>
<li mid="m10"><a href="/Admin/tongji/salereport.aspx?firstPage=1" title="分析统计">分析统计</a></li>
</ul>

            </nav>
            <div class="ui-header-user ">
                <div class="customer-wrap">
                </div>
                <div class="dropdown hover dropdown-right">
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
                        <span class="txt">
                            <span class="ellipsis team_name">炮弹走私</span><span class="dash"> - </span><span>admin</span>
                        </span>
                        <i class="caret"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="/admin/Settings/EditManager.aspx?UserID=1"><span class="glyphicon glyphicon-user"></span>个人信息</a></li>
                        <li><a href="/admin/Settings/EditManagerPassword.aspx?UserID=1"><span class="glyphicon glyphicon-list-alt"></span>修改密码</a></li>
                        <li class="divide"></li>
                        <li><a href="/Admin/LoginExit.aspx"><span class="glyphicon glyphicon-indent-right"></span>退出</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </header>
    <div class="container">
        <div class="app">
            <div class="app-inner clearfix">

    <div class="page-header">
            <h2>一元夺宝
                <small style="float:right;margin-top:10px;margin-left:10px;display:inline-block;color:red">系统每半小时会自动检查一次需要开奖的活动，如果满足条件自动开奖！</small>
            </h2>
   </div>
     <a class="btn btn-success" href="AddOneyuanInfo.aspx">新建一元夺宝活动</a>
     <form name="aspnetForm" method="post" action="OneyuanList.aspx" id="aspnetForm">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEzNTQ2Nzc1NjUPZBYCZg9kFgoCAQ8WAh4EVGV4dAWECjx1bCBjbGFzcz0iY2xlYXJmaXgiPg0KPGxpIGNsYXNzPSJkaXZpZGUiPnw8L2xpPg0KPGxpIG1pZD0ibTAxIj48YSBocmVmPSIvQWRtaW4vRGVmYXVs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fnrqHnkIYiPuWlluWTgeWPkei0p+euoeeQhjwvYT48L2xpPg0KPC91bD4NCmRkKodfimSDWGrChBzbH1h5HDuc+Uo=" />
</div>

<div>

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="4C261BFD" />
</div>

             <div id="mytabl" style="margin-top:10px">
            <!-- Nav tabs -->
            <div class="table-page">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="OneyuanList.aspx?state=0">所有夺宝(3)</a></li>
                    <li><a href="OneyuanList.aspx?state=1">进行中(0)</a></li>
                    <li><a href="OneyuanList.aspx?state=2">未开始(0)</a></li>
                    <li><a href="OneyuanList.aspx?state=3">已结束(3)</a></li>
                </ul>
                <div class="page-box">
                    <div class="page fr">
                        <div class="form-group">
                            <label for="exampleInputName2">每页显示数量：</label>
                            <a href="/Admin/Oneyuan/OneyuanList.aspx?pagesize=10" class="selectthis">10</a><a href="/Admin/Oneyuan/OneyuanList.aspx?pagesize=20">20</a><a href="/Admin/Oneyuan/OneyuanList.aspx?pagesize=40">40</a><a href="/Admin/Oneyuan/OneyuanList.aspx?pagesize=100">100</a>
                        </div>
                    </div>
                </div>
            </div>
            <!-- Tab panes -->
            <div class="tab-content">
               <div class="tab-pane active">

                    <div class="set-switch">
                        
                        <div class="form-inline">
                            <div class="form-group mr20">
                                <label for="sellshop4">活动标题：</label>
                                <input name="ctl00$ContentPlaceHolder1$txtTitle" type="text" id="ctl00_ContentPlaceHolder1_txtTitle" class="form-control  resetSize  inputw150" />
                            </div>
                            <div class="form-group mr20">
                                <label for="sellshop5">揭晓方式：</label>
                            <select name="ctl00$ContentPlaceHolder1$txtReachType" id="ctl00_ContentPlaceHolder1_txtReachType" class="form-control  resetSize ">
	<option selected="selected" value="0">全部</option>
	<option value="1">满份开奖</option>
	<option value="2">到期开奖</option>
	<option value="3">到期满份开奖</option>

</select>
                            </div>
                            <div class="form-group">
                                <label for="sellshop6">状态：</label>
                                <select name="ctl00$ContentPlaceHolder1$txtState" id="ctl00_ContentPlaceHolder1_txtState" class="form-control  resetSize ">
	<option selected="selected" value="0">全部</option>
	<option value="1">进行中</option>
	<option value="2">未开始</option>
	<option value="3">已结束</option>

</select>
                                </div>
                             <div class="form-group" style="margin-left :60px; margin-top:2px">
                            <input type="submit" name="ctl00$ContentPlaceHolder1$btnSearchButton" value="查询" id="ctl00_ContentPlaceHolder1_btnSearchButton" class="btn btn-primary  resetSize " /> 
                              </div> <div class="form-group mr20" style ="margin-left :30px;margin-top:10px"><a class="bl mb5" onclick="resetform();" style="cursor: pointer;">清除条件</a>
                            </div>
                        </div>
                    </div>

               </div>

            </div>
        </div>
 

         <div class="mb10 table-operation" style="padding-left:6px">
                                                <input type="checkbox" id="sells1" class="allselect">
                                                <label for="sells1">全选</label>
                                                 <a  class="btn resetSize btn-success" onclick="BatchStart()">批量开始</a>
                                                 <a  class="btn resetSize btn-danger"  onclick="BatchDel()">批量删除</a>
                                                  </div>
         <div class="title-table">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th width="2%"></th>
                                        <th width="10%">活动封面</th>
                                        <th width="13%">活动标题</th>
                                        <th width="15%">起止时间</th>
                                        <th width="8%">揭晓方式</th>
                                        <th width="12%">满足份数</th>
                                        <th width="6%">状态</th>
                                         <th width="8%">开奖状态</th>
                                        <th width="20%" style="text-align:center">操作</th>
                                    </tr>
                                </thead>
                                <tbody  class="tableRow">
                                   
                                    

                                            <tr>
                                       <td style="vertical-align:middle"><input name="CheckBoxGroup" class="fl" type="checkbox" value='A170519172730214' State='已结束' CanDel='1' /></td>
                                        <td >
                                             <img id="ctl00_ContentPlaceHolder1_Datalist_ctl00_ListImage1" src="/Storage/master/OneTao/5457e52c8aef44418876f6c78d3807d9.jpg" style="height:40px;width:128px;border-width:0px;" />
                                        </td>
                                        <td><a target="_blank" title="点击打开活动页面" href="/Vshop/ViewOneTao.aspx?vaid=A170519172730214">55566</a></td>
                                        <td >自2017-05-10 17:30:00<br />
                                            至2017-05-31 10:25:00
                                        </td>
                                        <td>满份开奖</td>
                                        <td >266<br />
                                           <span style="color:#aaa">已售</span>:<span style="color:red"> 0</span>
                                        </td>
                                        <td>已结束</td>
                                        <td ><span class='normal'>已关闭<span></td>
                                         <td >
                                            <a class="btn btn-xs btn-primary" onclick="AView('A170519172730214')" >查看</a> <a class="btn btn-xs btn-danger" onclick="ADel('A170519172730214')" >删除</a> 
                                        </td>
                                     </tr>

                                        

                                            <tr>
                                       <td style="vertical-align:middle"><input name="CheckBoxGroup" class="fl" type="checkbox" value='A161015145048182' State='已结束' CanDel='1' /></td>
                                        <td >
                                             <img id="ctl00_ContentPlaceHolder1_Datalist_ctl01_ListImage1" src="/Storage/master/OneTao/4d4d256a25254579892a059bc8b9c53b.jpg" style="height:40px;width:128px;border-width:0px;" />
                                        </td>
                                        <td><a target="_blank" title="点击打开活动页面" href="/Vshop/ViewOneTao.aspx?vaid=A161015145048182">任务订单</a></td>
                                        <td >自2016-10-15 14:50:00<br />
                                            至2016-10-31 20:45:00
                                        </td>
                                        <td>满份开奖</td>
                                        <td >198<br />
                                           <span style="color:#aaa">已售</span>:<span style="color:red"> 0</span>
                                        </td>
                                        <td>已结束</td>
                                        <td ><span class='normal'>已关闭<span></td>
                                         <td >
                                            <a class="btn btn-xs btn-primary" onclick="AView('A161015145048182')" >查看</a> <a class="btn btn-xs btn-danger" onclick="ADel('A161015145048182')" >删除</a> 
                                        </td>
                                     </tr>

                                        

                                            <tr>
                                       <td style="vertical-align:middle"><input name="CheckBoxGroup" class="fl" type="checkbox" value='A160711144610164' State='已结束' CanDel='1' /></td>
                                        <td >
                                             <img id="ctl00_ContentPlaceHolder1_Datalist_ctl02_ListImage1" src="/Storage/master/OneTao/b66ef63f8f7f498c9756b8e757f627bf.png" style="height:40px;width:128px;border-width:0px;" />
                                        </td>
                                        <td><a target="_blank" title="点击打开活动页面" href="/Vshop/ViewOneTao.aspx?vaid=A160711144610164">213213</a></td>
                                        <td >自2016-07-11 05:05:00<br />
                                            至2016-08-24 14:50:00
                                        </td>
                                        <td>满份开奖</td>
                                        <td >3900<br />
                                           <span style="color:#aaa">已售</span>:<span style="color:red"> 0</span>
                                        </td>
                                        <td>已结束</td>
                                        <td ><span class='normal'>已关闭<span></td>
                                         <td >
                                            <a class="btn btn-xs btn-primary" onclick="AView('A160711144610164')" >查看</a> <a class="btn btn-xs btn-danger" onclick="ADel('A160711144610164')" >删除</a> 
                                        </td>
                                     </tr>

                                        
                                </tbody>
                            </table>
</div>
          <div class="page">
                        <div class="bottomPageNumber clearfix">
                            <div class="pageNumber">
                                <div class="pagination">
                                    <span class="page-cur">1</span><span class="page-skip">第1/1页 共3记录<input type="text" class="text" value="1" size="3" id="txtGoto" />页<input type="button" class="button" value="确定" onclick="location.href=AppendParameter(&#39;pageindex&#39;,  $.trim($(&#39;#txtGoto&#39;).val()));" /></span>
                                </div>
                            </div>
                        </div>
                    </div>

     </form>  


     <!--活动提前结束-->
   <div class="modal fade" id="ActivityEnd">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header" style="background:#eee;border-top-left-radius:10px;border-top-right-radius:10px">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:left;color:#808080" >活动提前结束提醒</h4>
      </div>
        <div class="modal-body form-horizontal" id="EndBody" >
          当前活动已有人参与，请确定是开奖还是退款！
        </div>
      <div class="modal-footer">
          <button id="DrawEnd"  class="btn btn-success resetSize" Text="结束并开奖" />结束并开奖</button>
          <button id="RefundEnd"  class="btn btn-primary  resetSize" Text="结束并退款" />结束并退款</button>
        <button type="button" class="btn btn-default  resetSize" data-dismiss="modal">关闭</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

            </div>
        </div>
        <aside class="ui-sidebar sidebar" style="min-height: 533px;">
            <nav class="well" id="menu_left">
                <em class="glyphicon ico-youhuiquan"></em>
<span>优惠券</span>
<ul iid="yxi04">
<li><a href="/Admin/Promotion/CouponsList.aspx?bFininshed=false" title="优惠券列表">优惠券列表</a></li>
<li><a href="/Admin/Promotion/SetRegisterSendCoupon.aspx" title="会员注册送优惠券">会员注册送优惠券</a></li>
<li><a href="/Admin/Promotion/SendCouponByManager.aspx" title="优惠券手动发放">优惠券手动发放</a></li>
</ul>
<em class="glyphicon ico-chuoxiao"></em>
<span>促销活动</span>
<ul iid="yxi01">
<li><a href="/Admin/Promotion/ExChangeList.aspx" title="积分兑换">积分兑换</a></li>
<li><a href="/Admin/Promotion/PointToCash.aspx" title="积分抵现">积分抵现</a></li>
<li><a href="/Admin/Promotion/ShareActList.aspx" title="分享助力">分享助力</a></li>
<li><a href="/Admin/Promotion/ActivityList.aspx" title="满减活动">满减活动</a></li>
<li><a href="/Admin/Promotion/LimitedTimeDiscountList.aspx" title="限时折扣">限时折扣</a></li>
</ul>
<ul iid="yxi05">
<li class=" active"><a href="/Admin/Oneyuan/OneyuanList.aspx" title="一元夺宝">一元夺宝</a></li>
<li><a href="/Admin/Oneyuan/RefoundList.aspx" title="活动退款">活动退款</a></li>
<li><a href="/Admin/Bargain/ManagerBargain.aspx?Type=0" title="好友砍价">好友砍价</a></li>
</ul>
<ul iid="yxi02">
<li><a href="/Admin/Promotion/voteList.aspx" title="投票调查">投票调查</a></li>
</ul>
<em class="glyphicon ico-youxi"></em>
<span>抽奖游戏</span>
<ul iid="yxi03">
<li><a href="/Admin/Promotion/GameLists.aspx" title="幸运大转盘">幸运大转盘</a></li>
<li><a href="/Admin/Promotion/GameEggLists.aspx" title="疯狂砸金蛋">疯狂砸金蛋</a></li>
<li><a href="/Admin/Promotion/GameXingYunLists.aspx" title="好运翻翻看">好运翻翻看</a></li>
<li><a href="/Admin/Promotion/GameDaFuWenLists.aspx" title="大富翁">大富翁</a></li>
<li><a href="/Admin/Promotion/GameGuaGuaLeLists.aspx" title="刮刮乐">刮刮乐</a></li>
<li><a href="/Admin/Promotion/PrizeList.aspx" title="奖品发货管理">奖品发货管理</a></li>
</ul>

            </nav>
        </aside>
    </div>
    <div class="mt20"></div>
</body>
</html>
